
package smn;

import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;

import com.huaweicloud.saaslanding.install.SaaslandingInstallApplication;
import com.huaweicloud.saaslanding.install.applicationservice.SmnService;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import jakarta.annotation.Resource;

/**
 * 功能描述
 *
 * @since 2022-12-05
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SaaslandingInstallApplication.class, webEnvironment = RANDOM_PORT)
public class SmnTest {
    @Resource
    private SmnService smnService;

    @Test
    public void deleteSubscription() {
        smnService.clearSubscription();
    }

    @Test
    public void deleteTopic() {
        smnService.clearTopic();
    }

    @Test
    public void deleteEnv() {
        smnService.clearCurrentEnvironment();
    }

    @Test
    public void createDefaultMessageTemplate() {
        smnService.createDefaultMessageTemplate();
    }

    @Test
    public void deleteDefaultMessageTemplate() {
        smnService.deleteDefaultMessageTemplate();
    }
}
